﻿using System;
namespace Gx.Model
{

    /// <summary>
    /// 员工考勤工资明细
    /// </summary>
    [Serializable]
    public partial class E_EmployeeAttendanceSalaryInfo
    {
        private int _id;
        private int _empid;
        private string _empnum;
        private string _empname;
        private decimal _monthtotalpay;
        private byte _workdays;
        private decimal _dayaveragepay;
        private decimal _actualworkingdays;
        private byte _probationperiodday;
        private decimal _attendancepay;
        private decimal _leaveday;
        private decimal _rewardamercepay;
        private decimal _overtimeday;
        private bool _isovertimedaypay;
        private decimal _overtimedaypay;
        private bool _iswork;
        private string _countdate;
        private decimal _probationaryperiodsalary;
        private int _adduser;
        private DateTime _addtime;
        private int _lastedituser;
        private DateTime _lastedittime;
        private byte _stauts;
        public int Id
        {
            get
            {
                return _id;
            }
            set { _id = value; }
        }
        public int EmpId
        {
            get
            {
                return _empid;
            }
            set { _empid = value; }
        }
        public string EmpNum
        {
            get
            {
                if (_empnum == null)
                {
                    return "";
                }
                return _empnum;
            }
            set { _empnum = value; }
        }
        public string EmpName
        {
            get
            {
                if (_empname == null)
                {
                    return "";
                }
                return _empname;
            }
            set { _empname = value; }
        }
        /// <summary>
        /// 岗位工资
        /// </summary>
        public decimal MonthTotalPay
        {
            get
            {
                return _monthtotalpay;
            }
            set { _monthtotalpay = value; }
        }
        public byte WorkDays
        {
            get
            {
                return _workdays;
            }
            set { _workdays = value; }
        }
        /// <summary>
        /// 日平均工资
        /// </summary>
        public decimal DayAveragePay
        {
            get
            {
                return _dayaveragepay;
            }
            set { _dayaveragepay = value; }
        }
        /// <summary>
        /// 实际上班天数
        /// </summary>
        public decimal ActualWorkingDays
        {
            get
            {
                return _actualworkingdays;
            }
            set { _actualworkingdays = value; }
        }
        /// <summary>
        /// 试用期天数
        /// </summary>
        public byte ProbationPeriodDay
        {
            get
            {
                return _probationperiodday;
            }
            set { _probationperiodday = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal AttendancePay
        {
            get
            {
                return _attendancepay;
            }
            set { _attendancepay = value; }
        }
        public decimal LeaveDay
        {
            get
            {
                return _leaveday;
            }
            set { _leaveday = value; }
        }
        public decimal RewardAmercePay
        {
            get
            {
                return _rewardamercepay;
            }
            set { _rewardamercepay = value; }
        }
        /// <summary>
        /// 加班天数
        /// </summary>
        public decimal OverTimeDay
        {
            get
            {
                return _overtimeday;
            }
            set { _overtimeday = value; }
        }
        public bool IsOverTimeDayPay
        {
            get
            {
                return _isovertimedaypay;
            }
            set { _isovertimedaypay = value; }
        }
        /// <summary>
        /// 加班工资倍数
        /// </summary>
        public decimal OverTimeDayPay
        {
            get
            {
                return _overtimedaypay;
            }
            set { _overtimedaypay = value; }
        }
        public bool IsWork
        {
            get
            {
                return _iswork;
            }
            set { _iswork = value; }
        }
        public string CountDate
        {
            get
            {
                if (_countdate == null)
                {
                    return "";
                }
                return _countdate;
            }
            set { _countdate = value; }
        }
        /// <summary>
        /// 试用期工资比例
        /// </summary>
        public decimal ProbationaryPeriodSalary
        {
            get
            {
                return _probationaryperiodsalary;
            }
            set { _probationaryperiodsalary = value; }
        }
        public int AddUser
        {
            get
            {
                return _adduser;
            }
            set { _adduser = value; }
        }
        public DateTime AddTime
        {
            get
            {
                if (_addtime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _addtime;
            }
            set { _addtime = value; }
        }
        public int LastEditUser
        {
            get
            {
                return _lastedituser;
            }
            set { _lastedituser = value; }
        }
        public DateTime LastEditTime
        {
            get
            {
                if (_lastedittime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _lastedittime;
            }
            set { _lastedittime = value; }
        }
        public byte Stauts
        {
            get
            {
                return _stauts;
            }
            set { _stauts = value; }
        }
    }
}


